﻿<UserControl x:Class="KoRepOnlineSales2.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
    xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit"
    xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="500" >

    <Grid x:Name="LayoutRoot" Background="White">
        <Button Content="Показать" Height="23" HorizontalAlignment="Center"  Margin="230,2,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
        <basics:DatePicker Name="SelectDate" Width="150" Height="23" VerticalAlignment="Top" HorizontalAlignment="Center"  Margin="0,2,0,0" SelectedDateChanged="SelectDate_SelectedDateChanged" CalendarClosed="SelectDate_CalendarClosed"></basics:DatePicker>
        <TextBlock Name="logo" Text="Ko - " VerticalAlignment="Top" HorizontalAlignment="Left" Height="23" Width="80" Margin="2,2,0,0" FontSize="10"></TextBlock>
        <TextBlock Name="UpdateTime" Text="00:00:00" VerticalAlignment="Top" HorizontalAlignment="Left" Height="23" Width="80" Margin="100,2,0,0" FontSize="10"></TextBlock>
        <data:DataGrid AutoGenerateColumns="False" Height="auto" HorizontalAlignment="Left" Margin="0,26,0,20" Name="dataGrid1" VerticalAlignment="Top" Width="auto">
            <data:DataGrid.Columns>
                <data:DataGridTextColumn Width="0.3*" Header="Магазин" Binding="{Binding ShopName}" />
                <data:DataGridTextColumn Width="0.14*" Header="kassa1" Binding="{Binding kassa1}">
                    <data:DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Right" />
                        </Style>
                    </data:DataGridTextColumn.ElementStyle>
                </data:DataGridTextColumn>
                <data:DataGridTextColumn Width="0.14*" Header="kassa2" Binding="{Binding kassa2}">
                    <data:DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Right" />
                        </Style>
                    </data:DataGridTextColumn.ElementStyle>
                </data:DataGridTextColumn>
                <data:DataGridTextColumn Width="0.14*" Header="kassa3" Binding="{Binding kassa3}">
                    <data:DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Right" />
                        </Style>
                    </data:DataGridTextColumn.ElementStyle>
                </data:DataGridTextColumn>
                <data:DataGridTextColumn Width="0.14*" Header="kassa4" Binding="{Binding kassa4}">
                    <data:DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Right" />
                        </Style>
                    </data:DataGridTextColumn.ElementStyle>
                </data:DataGridTextColumn>
                <data:DataGridTextColumn Width="0.14*" Header="Итого"  Binding="{Binding total}">
                    <data:DataGridTextColumn.ElementStyle>
                        <Style TargetType="TextBlock">
                            <Setter Property="TextAlignment" Value="Right" />
                        </Style>
                    </data:DataGridTextColumn.ElementStyle>
                </data:DataGridTextColumn>
            </data:DataGrid.Columns>
        </data:DataGrid>
        <Grid Height="20" Margin="0,0,0,0" VerticalAlignment="Bottom" Width="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.8*" />
                <ColumnDefinition Width="0.2*">
                </ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Name="mainFooter1" TextAlignment="Right" Text="Итого : " VerticalAlignment="Center" />
            <TextBlock Grid.Column="1" Name="mainFooter" TextAlignment="Right"  Text="0" VerticalAlignment="Center" DataContext="{Binding}" FontWeight="Bold" FontSize="12" />
        </Grid>
        <Path Name="RecStatus" Fill="White" Stroke="Gray" StrokeThickness="1" HorizontalAlignment="Right" Width="12" Height="24" VerticalAlignment="Top">
            <Path.Data>
                <EllipseGeometry Center="0,14" RadiusX="8" RadiusY="8" />
            </Path.Data>
        </Path>
    </Grid>
</UserControl>
